<% form_for(@gadget) do |f| %>
	<%= f.error_messages %>
	<label>Title:</label>
	<%= f.text_field :title %><br/>
	<label>Spec URL:</label>
	<%= f.text_field :spec_url, :size=>100 %><br/>
	<label>Container ID:</label>
	<%= f.text_field :container_id %><br/>
	<label>Description:</label>
	<%= f.text_area :description %><br/><br/>
	<label>Category:</label>
	<%= collection_select(:gadget, :category_id, @categories, :id, :name, options ={:prompt => "-Select a category"}, :class =>"category") %>
	<br/><br/>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>